home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2698 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  895 b 

  1. Path: gryphon.phoenix.net!usenet
  2. From: brucew@phoenix.net (Bruce Wedding)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: *Pointer to Functions();   /* HELP */
  5. Date: Tue, 23 Jan 1996 06:27:31 GMT
  6. Organization: BranPaul Systems
  7. Message-ID: <4e1src$3on@gryphon.phoenix.net>
  8. References: <4dvrq8$c2c@news.unicomp.net>
  9. NNTP-Posting-Host: dial46.phoenix.net
  10. X-Newsreader: Moe's Newsreader    
  11.  
  12. jgore@conline.com (Jerry_Gore) wrote:
  13.  
  14. >How do I pass a pointer to a funtion?
  15.  
  16. >    #define WORD    unsigned int       
  17. >    void    InstallTimer0(WORD period,void far (*func)(void));
  18.  
  19. >    void far animate(void)    /* I added 'far' for no good reason.   */
  20.  
  21.     InstallTimer0(120 , animate);
  22. or InstallTimer0(120, &animate);
  23. Bruce D. Wedding                        Have Compiler, Will Travel!
  24.               Perspicacious Programming Performed Promptly
  25. Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
  26.  
  27.